const spanman = require("../index.js")
const obj = {
    a: 1,
    b: {b1:[],b2:[]},
    c: { d: {}, g: () => {} },
    e: () => {},
    f: function() {}
}
const newObj = spanman.deepCopy(obj);
console.log(newObj.a === obj.a);
console.log(newObj.b === obj.b);
console.log(newObj.c === obj.c);
console.log(newObj.c.d === obj.c.d);
console.log(newObj.c.g === obj.c.g);
console.log(newObj.e === obj.e);
console.log(newObj.f === obj.f);
const o2=spanman.deepCopy([0,obj,[1]])
console.log(o2);
var str=new String("hello");
console.log(Object.prototype.toString.call(str))
console.log(spanman.deepCopy(str));
console.log(Object.prototype.toString.call(new Number()))
console.log(spanman.deepCopy(new Number(100)));
console.log(Object.prototype.toString.call(new Date()))
console.log(spanman.deepCopy(new Date()));
console.log(Object.prototype.toString.call(new RegExp('/111/')))
console.log(spanman.deepCopy(new RegExp('/111/')));